ia.CategoricClassifier Class
Classifies categoric data.
Constructor
ia.CategoricClassifier
(
-
data
Parameters:
-
data
StringThe data array.
Item Index
Methods
Properties
Methods
_buildClasses
()
private
Called when the dataChanged
flag indicates that the
classifier has changed in some way so that the classes
have to be rebuilt.
_buildPalettes
()
private
Called when the style or one of the legend palettes has changed.
_getUniqueValues
(
String
private
-
data
Returns a sorted list of unique values for an array.
Parameters:
-
data
StringThe data array.
Returns:
String:
An array of unique values.
commitChanges
()
Call this to commit any changes.
getClass
(
ia.CategoricClass
-
value
Gets the legend class for the given value.
Parameters:
-
value
StringThe value.
Returns:
ia.CategoricClass:
The legend class that contains the value.
getClasses
(
-
value
An array of legend classes contained in the classifier.
Parameters:
-
value
ia.CategoricClass[]The data.
getData
()
String
Gets the data.
Returns:
String:
The data.
setData
(
-
value
Sets the data.
Parameters:
-
value
StringThe data.
Properties
breaks
Number
A list of breaks used in place of the default values.
labels
String
A list of labels used in place of the default values.
noClasses
Number
The number of classes.
Default: 0
symbolSize
Number
The symbol size.
Default: 10;
uniqueValues
Number
A list of sorted unique values in the classifier.